package com.ruoyi.vote.admin.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * banner轮播图业务对象 vote_banner
 *
 * @author 筑巢
 * @date 2023-07-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class VoteBannerBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 跳转地址
     */
    private String path;

    /**
     * 标题
     */
    private String title;

    /**
     * 是否显示
     */
    @NotNull(message = "是否显示不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


}
